package com.xxg.fegin.feginapi;

import com.xxg.fegin.fallback.UserFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name="eureka-client", fallback = UserFallBack.class)
public interface UserInterface {

    @RequestMapping(value = "/user/findAll", method = RequestMethod.GET)
    String findAll(@RequestParam(value = "pageSize") int pageSize,
                   @RequestParam(value = "pageNum") int pageNum);
}
